#ifndef GWAVI_H
#define GWAVI_H

#include "avi_private.h"
#include "fileio.h"
#include "aviutils.h"
#include <QString>
#include <QList>
#include <QImage>
#include <QDataStream>

class GWAVI
{
public:

    GWAVI();
    void AddImages(QString filename,QList<QImage> lstImage);
private:
    gwavi_t *gwavi_open(quint32 width, quint32 height,  QString fourcc, quint32 fps,quint32 frameCount,quint32 dotsPerMeterX,quint32 dotsPerMeterY,quint32 bitsPerPixel);
    int gwavi_add_frame(gwavi_t *gwavi,const uchar* buffer, size_t len);
    int gwavi_close(gwavi_t *gwavi);

    FileIO *mFileIO;
    AviUtils *utils;
};

#endif // GWAVI_H
